<template>
 <div id="app">
   <div>App 应用</div>
  <Pager :current='current' :total="total" @PagerChanger="handlePagerChanger($event)"></Pager>
 </div>
</template>
<script>

import Pager from "./index.vue";
export default {
  components :{
 Pager,
  },
  data(){
    return {
      current:1,
      total:301,
    }
  },
  methods:{
    handlePagerChanger(newpager){
      this.current =newpager;
      console.log('设置新的页码');
    }
  }
}
</script>
<style>


</style>

